gsk: Respect max element vertices limitation
authorMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jun 2021 13:50:59 +0000 (06:50 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jun 2021 13:50:59 +0000 (06:50 -0700)
commitf58fc6b22e143e43b45f297795959f217a26d95f
treeda0f1ccdc358e06fd1df5d28c05b7b394c1de0f0
parentfb052c8d2546706b49e5adb87bc88ad600f31752
gsk: Respect max element vertices limitation

We are pretty good at batching commands now, and we can easily
produce batches that exceed the maximum number of elements per
draw call that the hw can handle. Query that number, and respect
it when merging batches.

This fixes the rendering of the overview map in GtkSourceView.
gsk/ngl/gsknglcommandqueue.c
gsk/ngl/gsknglcommandqueueprivate.h